<template>
	<view class="topic-list" @tap="openDetail()">
		<image :src="item.topicPic" mode="widthFix" lazy-load></image>
		<view>
			<view>#{{item.topicName}}#</view>
			<view>{{item.topicDescription}}</view>
			<view>动态 {{item.totalNum}} 今日 {{item.todayNum}}</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			item:Object
		},
		methods:{
			openDetail(){
				uni.navigateTo({
					url:'../../pages/topic-description/topic-description'
				});
			}
		}
	}
</script>

<style scoped>
	.topic-list {
		display: flex;
		padding: 10rpx 0;
		border-bottom: 1rpx solid #EEEEEE;
	}
	
	.topic-list image {
		width: 170rpx;
		height: 170rpx;
		border-radius: 15rpx;
		margin-right: 20rpx;
		flex-shrink: 0;
	}
	
	.topic-list>view view {
		color: #9E9E9E;
		font-size: 28rpx;
		margin-top: 10rpx;
	}
	
	.topic-list>view>view:first-child {
		color: #000000;
		font-size: 35rpx;
	}
</style>
